// pages/optioncore/optioncore.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    coreList:[
      {
        img:"http://img.xunyinjiaoyou.com/static/xiaochengxu/option/bianji.png",
        name:'编辑个人资料',
        path:'/pages'
      },
      {
        img:"http://img.xunyinjiaoyou.com/static/xiaochengxu/option/my_icon_wodezuanshi.png",
        name:'我的钻石',
        path:'/pages'
      },
      {
        img:"http://img.xunyinjiaoyou.com/static/xiaochengxu/option/my_icon_wodejifen.png",
        name:'我的积分',
        path:'/pages'
      },
      {
        img:"http://img.xunyinjiaoyou.com/static/xiaochengxu/option/my_icon_zhuangbanshangcheng.png",
        name:'个性装扮',
        path:'/pages'
      },
      {
        img:"http://img.xunyinjiaoyou.com/static/xiaochengxu/option/my_icon_wodedengji.png",
        name:'我的等级',
        path:'/pages'
      },
      {
        img:"http://img.xunyinjiaoyou.com/static/xiaochengxu/option/my_icon_my_room.png",
        name:'我的房间',
        path:'/pages'
      },
      {
        img:"http://img.xunyinjiaoyou.com/static/xiaochengxu/option/my_icon_set_up.png",
        name:'账号设置',
        path:'/pages/option/option'
      },
      {
        img:"http://img.xunyinjiaoyou.com/static/xiaochengxu/option/my_icon_kefu.png",
        name:'客服中心',
        path:'/pages'
      },
      {
        img:"http://img.xunyinjiaoyou.com/static/xiaochengxu/option/my_icon_about_us.png",
        name:'关于声贝',
        path:'/pages'
      },
    ]
  },
  topath(data){
    console.log(data.currentTarget.dataset.index)
    wx.navigateTo({
      url: ''+this.data.coreList[data.currentTarget.dataset.index].path,
    })
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})